#include "Object.h"
#include "Field.h"

Team randomTeam() {
    int i = rand() % 3;
    switch( i ) {
        case( 0 ): return TEAMENUM;  break;
        case( 1 ): return TEAMID;    break;
        case( 2 ): return TEAMDEMON; break;
        default:   return TEAMDEMON; break;
    }
}

void Object::paint(){
    Graphics* a = getField()->getGraph();
    a->paint( getX(), getY(), this );
}

